package org.jeecg.modules.common.basevo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.common.baseentity.PublicBeanPage;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@ToString(callSuper = true)
@SuperBuilder(toBuilder = true)
public class BaseVo extends PublicBeanPage implements Serializable  {
    protected static final long serialVersionUID = 1L;
    //部门 学校租户id 学期 学年 继承于PublicBeanPage
//    /**部门编码*/
//    @Excel(name = "部门编码", width = 15)
//    @ApiModelProperty(value = "部门编码")
//    protected String sysOrgCode;
//    /**学校编码（租户id）*/
//    @Excel(name = "学校编码（租户id）", width = 15)
//    @ApiModelProperty(value = "学校编码（租户id）")
//    protected String tenantId;


    /**是否启用(1是启用，0否停用)*/
    @Excel(name = "是否启用(1是启用，0否停用)", width = 15)
    @ApiModelProperty(value = "是否启用(1是启用，0否停用)")
    @Dict(dicCode = "iz_open")
    protected Integer izOpen=1;
    /**0表示未删除,1表示删除*/
    @Excel(name = "0表示未删除,1表示删除", width = 15)
    @ApiModelProperty(value = "0表示未删除,1表示删除")
    @Dict(dicCode = "del_flag")
    protected Integer delFlag=0;
    /**创建人*/
    @ApiModelProperty(value = "创建人")
    protected String createBy;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    protected Date createTime;
    /**修改人*/
    @ApiModelProperty(value = "修改人")
    protected String updateBy;
    /**修改时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "修改时间")
    protected Date updateTime;

}
